package pzl.com.mvp.model;

import android.util.Log;

import pzl.com.mvp.model.interfaces.IUserModel;

/**
 * Created by Administrator on 2016-04-12.
 * Model也需要对这三个字段进行读写操作，并存储在某个载体内(这不是我们所关心的，
 * 可以存在内存、文件、数据库或者远程服务器，但对于Presenter及View无影响)
 */
public class UserModel implements IUserModel {
    private String name;
    private String pwd;

    public UserModel() {
    }

    public UserModel(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getPwd() {
        return pwd;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        String s = "UserModel{" +
                "name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
        Log.i("pzl", s);
        return s;
    }
}
